package com.hotelmanage.manage.services;


import com.hotelmanage.manage.entities.Building;
import com.hotelmanage.manage.mappers.BuildingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BuildingService {

    private BuildingMapper buildingMapper;
    private RoomService roomService;

    public int create(Building building) {
        return buildingMapper.create(building);
    }

    public Building detail(Integer id) {
        return buildingMapper.detail(id);
    }

    public int count(Building building) {
        return buildingMapper.count(building);
    }

    public int queryGender(Integer buildingId){
        return buildingMapper.queryGender(buildingId);
    }

    public int queryDomersBuilding(Integer userId){
        return buildingMapper.queryDomersBuilding(userId);
    }
}
